package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.AttachFile;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * Created by lgh on 2018/07/27.
 */
public interface AttachFileService extends IService<AttachFile> {

    String uploadFile(byte[] bytes, String originalName) throws IOException;

    String uploadFile(MultipartFile file) throws IOException;

    void deleteFile(String fileName);
}
